package com.xe.gae.model;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.datastore.Text;
import com.xe.util.XEntity;
import com.xe.util.XFK;
import com.xe.util.XID;



public class XEResource extends XEntity {

	@XFK(isAncenstor=true)
	XETree tree;
	
	@XFK
	XEResource parent;
	
	@XID
	String path;
	
	Boolean isFolder;
	
	String mimeType;
	
	Text source;
	
	BlobKey blobKey;
	
	
	
	public String getPath() {
		return path;
	}
	
	public void setPath(String path) {
		this.path = path;
	}
	
	
	
	public XEResource getParent() {
		return parent;
	}
	
	public void setParent(XEResource parent) {
		this.parent = parent;
	}

	public BlobKey getBlobKey() {
		return blobKey;
	}

	public void setBlobKey(BlobKey blobKey) {
		this.blobKey = blobKey;
	}


	public Boolean getIsFolder() {
		return isFolder;
	}

	public void setIsFolder(Boolean isFolder) {
		this.isFolder = isFolder;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public Text getSource() {
		return source;
	}

	public void setSource(Text source) {
		this.source = source;
	}

	public XETree getTree() {
		return tree;
	}

	public void setTree(XETree tree) {
		this.tree = tree;
	}

	
}
